﻿using Acaweb.Common;
using System.ServiceModel.Activation;
using Acaweb.Model.Entities;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class DocentesService: Contracts.IDocentesService
    {
        Components.IDocentesService _DocenteComponent = AppCtx.Resolve<Components.IDocentesService>();

        public Docentes GetById(string NIT)
        {
            return _DocenteComponent.GetById(NIT);
        }

        public void Update(Docentes Docente)
        {
            _DocenteComponent.Update(Docente);
        }
    }
}